<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddIsUsedToBasicRecordsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('basic_records', function (Blueprint $table) {
            //
            $table->string('is_used')->nullable()->default(0)->comment('是否已经扫描后端二维码 0:未扫描; 1:已扫描');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('basic_records', function (Blueprint $table) {
            //
            $table->dropColumn('is_used');
        });
    }
}
